projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a50a90c
)
FEC: Allow selection of MII mode via CONFIG_FEC_XCV_TYPE
author
Marek Vasut
<
[email protected]
>
Sun, 11 Sep 2011 18:05:33 +0000
(18:05 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Fri, 30 Sep 2011 20:01:01 +0000
(22:01 +0200)
The default is MII100, which was hardcoded previously in the driver.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Ben Warren <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Cc: Wolfgang Denk <
[email protected]
>
Cc: Detlev Zundel <
[email protected]
>
drivers/net/fec_mxc.c
patch
|
blob
|
history
diff --git
a/drivers/net/fec_mxc.c
b/drivers/net/fec_mxc.c
index 32854fb79501172039e52ce6f4392b44e02baf15..61b80b2baa4c737edddb17af99017e2db04395b3 100644
(file)
--- a/
drivers/net/fec_mxc.c
+++ b/
drivers/net/fec_mxc.c
@@
-38,6
+38,10
@@
DECLARE_GLOBAL_DATA_PTR;
#error "CONFIG_MII has to be defined!"
#endif
+#ifndef CONFIG_FEC_XCV_TYPE
+#define CONFIG_FEC_XCV_TYPE MII100
+#endif
+
#undef DEBUG
struct nbuf {
@@
-711,7
+715,7
@@
static int fec_probe(bd_t *bd)
fec->eth = (struct ethernet_regs *)IMX_FEC_BASE;
fec->bd = bd;
- fec->xcv_type =
MII100
;
+ fec->xcv_type =
CONFIG_FEC_XCV_TYPE
;
/* Reset chip. */
writel(readl(&fec->eth->ecntrl) | FEC_ECNTRL_RESET, &fec->eth->ecntrl);